<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">






    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('provinceid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="provinceid form-control" name="row[provinceid]"  id="selectProvince"   >

                <option value="">请选择省份</option>
                {foreach name="provincelist" item="v"}
                <option value="{$v.id}" >{$v.name}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('cityid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="cityid form-control" name="row[cityid]"  id="selectCity"   >

                <option value="0">请选择城市</option>

            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('areaid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="areaid form-control" name="row[areaid]"  id="selectArea"   >

                <option value="0">请选择区域</option>

            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('brandid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="brandid form-control" name="row[brandid]"  id="selectBrand"   >

                <option value="0">请选择品牌</option>

                {foreach name="brandlist" item="v"}
                <option value="{$v.id}" >{$v.name}</option>
                {/foreach}

            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('sbrandid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="sbrandid form-control" name="row[sbrandid]"  id="sbrandid"   >

                <option value="0">请选择车系</option>

            </select>
        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>





    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carkm')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carkm" data-rule="required" class="form-control" name="row[carkm]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carnumdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carnumdate" data-rule="required" class="form-control" name="row[carnumdate]" type="text">
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('cartype')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="express form-control" name="row[cartype]"     >
                <option value="" >请选择车身结构</option>
                <option value="客车" >客车</option>
                <option value="货车" >货车</option>
                <option value="三厢车" >三厢车</option>
                <option value="两厢车" >两厢车</option>
                <option value="旅行车" >旅行车</option>
                <option value="皮卡" >皮卡</option>
                <option value="MPV" >MPV</option>
                <option value="SUV" >SUV</option>
                <option value="掀背车" >掀背车</option>
                <option value="软顶敞篷车" >软顶敞篷车</option>
                <option value="硬顶敞篷车" >硬顶敞篷车</option>
                <option value="硬顶跑车" >硬顶跑车</option>
            </select>
        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carrate')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carrate form-control" name="row[carrate]"     >
                <option value="" >请选择排放</option>
                <option value="国一" >国一</option>
                <option value="国二" >国二</option>
                <option value="国三" >国三</option>
                <option value="国四" >国四</option>
                <option value="国五" >国五</option>
                <option value="国六" >国六</option>
                <option value="欧一" >欧一</option>
                <option value="欧二" >欧二</option>
                <option value="欧三" >欧三</option>
                <option value="欧四" >欧四</option>
                <option value="欧五" >欧五</option>
                <option value="欧六" >欧六</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carchange')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carchange form-control" name="row[carchange]"     >
                <option value="" >请选择变速箱</option>
                <option value="自动档" >自动档</option>
                <option value="手动档" >手动档</option>

            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carspl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carspl" data-rule="required" class="form-control" name="row[carspl]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('per')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[per]-normal"><input  name="row[per]" type="radio" value="0" checked=""> L</label>
                <label for="row[per]-hidden"><input  name="row[per]" type="radio" value="1" > T</label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carfuel')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carfuel form-control" name="row[carchange]"     >
                <option value="" >请选择燃料类型</option>
                <option value="汽油" >汽油</option>
                <option value="柴油" >柴油</option>
                <option value="油电混合" >油电混合</option>
                <option value="增程式" >增程式</option>
                <option value="插电式混合动力" >插电式混合动力</option>
                <option value="纯电力" >纯电力</option>
                <option value="氢燃料电池" >氢燃料电池</option>
                <option value="汽油+48V轻混系统" >汽油+48V轻混系统</option>
                <option value="油气混合" >油气混合</option>

            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carpos')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carpos form-control" name="row[carpos]"     >
                <option value="" >请选择座位</option>
                <option value="2座" >2座</option>
                <option value="4座" >4座</option>
                <option value="5座" >5座</option>
                <option value="6座" >6座</option>
                <option value="7座及以上" >7座及以上</option>
            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carcolor')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carcolor form-control" name="row[carcolor]"     >
                <option value="" >请选择颜色</option>
                <option value="银灰色" >银灰色</option>
                <option value="深灰" >深灰</option>
                <option value="黑色" >黑色</option>
                <option value="白色" >白色</option>
                <option value="红色" >红色</option>
                <option value="蓝色" >蓝色</option>
                <option value="咖啡色" >咖啡色</option>
                <option value="香槟色" >香槟色</option>
                <option value="黄色" >黄色</option>
                <option value="紫色" >紫色</option>
                <option value="绿色" >绿色</option>
                <option value="橙色" >橙色</option>
                <option value="粉红色" >粉红色</option>
                <option value="棕色" >棕色</option>
                <option value="冰川白" >冰川白</option>
                <option value="银色" >银色</option>
                <option value="金色" >金色</option>
                <option value="其他" >其他</option>
            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('special')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
                <label for="row[special]-0"><input  id="row[special]-0" name="row[special][]" type="checkbox" value="准新车" >准新车</label>
                <label for="row[special]-1"><input id="row[special]-1"  name="row[special][]" type="checkbox" value="练车代步"> 练手代步</label>
                <label for="row[special]-2"><input id="row[special]-2"  name="row[special][]" type="checkbox" value="热销SUV"> 热销SUV</label>
                <label for="row[special]-3"><input id="row[special]-3"  name="row[special][]" type="checkbox" value="舒适MPV"> 舒适MPV</label>

            </div>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" data-rule="required" class="form-control" name="row[tel]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2"  >{:__('thumb')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="" class="form-control" size="50" name="row[thumb]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group" data-field="images">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('thumb_url')}</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[thumb_url]" type="text" value="" placeholder="组图可以直接从正文进行提取,可以为空">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images"></ul>
        </div>
    </div>


    <div class="form-group" data-field="description">
        <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('content')}</label>
        <div class="col-xs-12 col-sm-8">

            <textarea id="c-content" class="form-control editor" name="row[content]" cols="30" rows="10"></textarea>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('isrecommand')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[isrecommand]-normal"><input  name="row[isrecommand]" type="radio" value="1" checked=""> 是 </label>
                <label for="row[isrecommand]-hidden"><input  name="row[isrecommand]" type="radio" value="0">否</label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('ischeck')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[ischeck]-normal"><input  name="row[ischeck]" type="radio" value="1" checked=""> 启用</label>
                <label for="row[ischeck]-hidden"><input  name="row[ischeck]" type="radio" value="0" > 禁用</label>
            </div>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[status]-normal"><input  name="row[status]" type="radio" value="1" checked=""> 启用</label>
                <label for="row[status]-hidden"><input  name="row[status]" type="radio" value="0"> 禁用</label>
            </div>
        </div>
    </div>





    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
